<?php echo $__env->make("template::My.views.header", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>  
<link href="/mycms/cms/theme/My/assets/css/login.css?time=<?php echo e(time()); ?>" rel="stylesheet">
</head>
<body class="bg-[#F4F6FB] font-['PingFang']" >
      <div class="container mx-auto h-60 bg-cover bg-center " style="background-image: url('/mycms/cms/theme/My/assets/img/top.png')">
    </div>
    <form  method="post" id="login" onsubmit="return login();">
    <div class="container mx-auto bg-white w-11/12  rounded-xl h-auto flex flex-col justify-center items-center  -mt-[158px] ">
        <div class="container mx-auto w-[195px]  h-auto  flex flex-row    mt-[25px] text-[#222222] mb-[52px]">
            <div  class="basis-6/12 text-center">
                <span class=" font-['PingFang']  font-bold  text-[23px]" >密码登陆</span>
                <center><div class="w-[24px] h-[6px] rounded-[3px] -mt-[1px]  bg-[#3368FD] " ></div></center>
            </div>
            <div  class="basis-6/12 text-center">
                <a href="<?php echo e(route('user.codelogin',['referrer'=>$referrer?:url('/')])); ?>"><span class="font-['PingFang']  text-[20px]" >短信登陆</span></a>
                <!--<center><div class="w-[24px] h-[6px] rounded-[3px] -mt-[1px]  bg-[#3368FD] " ></div></center>-->
            </div>
        </div>
        <input type="tel"  name="mobile" class="rounded-full w-[302px]   h-[53px]   bg-[#F6F6F6] text-center text-[#C6C6C6] text-xl  border-[0px] placeholder:text-[#C6C6C6] placeholder:text-[18px] focus:text-[#222222]  focus:text-[18px] " placeholder="输入手机号"/>
        <input  type="password"  name="password" class="rounded-full w-[302px]   h-[53px]  mt-[12px] mb-[27px] bg-[#F6F6F6] text-center text-[#C6C6C6] text-xl    border-[0px] placeholder:text-[#C6C6C6] placeholder:text-[18px] focus:text-[#222222]  focus:text-[18px]" placeholder="输入密码">
        <button  class="bg-[#3368FD] rounded-full shadow-xl shadow-blue-400/30 w-[302px]  h-[50px]  text-white font-bold text-[18px]">登陆</button>
         
        <p class="text-center text-[14px] text-[#222222] font-medium leading-[16px] mb-[16px] mt-[21px]  ">没有账号 <a href="<?php echo e(route('user.reg',['referrer'=>$referrer?:url('/')])); ?>" ><span class="text-[#3368FD]">注册</span></a></p>
        <div class="text-center text-[12px] text-[#B2B2B2] font-medium leading-[12px] mb-[218px]"><input type="checkbox"  checked class="text-[#3368FD] w-[14px] h-[14px]  rounded-full focus:ring-indigo-400 focus:ring-opacity-25 border border-gray-300 justify-end "  /> 阅读并同意 <span class="font-bold">服务协议</span> 和 <span  class="font-bold">隐私协议</span></div>
   
    </div>
    </form>
 
<script>
     function login()
    {
        $.ajax({
            url: '<?php echo e(route('user.login')); ?>',
            type: 'post',
            contentType: "application/x-www-form-urlencoded; charset=UTF-8",
            dataType: "json",
            data: $('#login').serialize(),
            timeout: 60000,
            headers: {
                'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            },
            success: function (res) {
                alert(res.msg);
                location.href = "<?php echo e($referrer?:url('/')); ?>";  
            },
            error: function (xhr,error) {
                jsonObj=JSON.parse(xhr.response)
                console.log(xhr);
                alert(jsonObj.msg);
                return false;
            }
        });

        return false;
    }
</script>
<?php echo $__env->make("template::My.views._footer", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php /**PATH /www/wwwroot/mycms/Template/My/views/login.blade.php ENDPATH**/ ?>